-- GENERATED SPELL FOR [Reanimated Drakkari Tribesman] --


function spell0_26946(pUnit, Event) --@Cannibalize,n/a--
pUnit:FullCastSpellOnTarget(50642,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26946', 4000, 1)
end

function spell1_26946(pUnit, Event) --@Crazed Hunger,Self--
pUnit:FullCastSpellOnTarget(3151,pUnit)
pUnit:RegisterEvent('Sorts_26946', 6000, 1)
end

function Sorts_26946(pUnit, Event)
local choix_sorts_26946 = math.random(0, 1)
if choix_sorts_26946 == 0 then
pUnit:RegisterEvent('spell0_26946', 1, 1)
end
if choix_sorts_26946 == 1 then
pUnit:RegisterEvent('spell1_26946', 1, 1)
end
end

function mob26946_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26946', math.random(1500, 3000), 1)
end

function mob26946_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26946_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26946_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26946, 1, 'mob26946_Action')
RegisterUnitEvent(26946, 2, 'mob26946_Leave')
RegisterUnitEvent(26946, 3, 'mob26946_Kill')
RegisterUnitEvent(26946, 4, 'mob26946_Die')
